<html>
  <head>
    <title>Instala��o e configura��o inicial</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <link type="text/css" rel="stylesheet" href="../css/comum.css">
  </head>
  <body>
    <p>Ol�.</p>

    <p>A instala��o do projeto Emaus � composta de cinco passos simples,
    considerando que o Apache, o PHP e o MySQL j� estejam devidamente
    configurados:</p>

    <ol>
      <li>Edite o arquivo <code>sql/instalar.sql</code>, altere a linha que
      come�a com <code>-- grant</code>, removendo os dois primeiros
      caracteres (--) e colocando uma senha entre as aspas finais
      (<code>identified by ''</code>);
      A linha deve ficar semelhante a:
      <pre>grant all privileges on emaus.* to 'emaus'@'localhost' identified by '<b>sua senha vem aqui!</b>';</pre>
      </li>

      <li>De dentro do diret�rio sql, execute o console do MySQL:
        <pre>$ <b>mysql -u root -p mysql</b>
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 5.0.45-Debian_1ubuntu3-log Debian etch distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql&gt; <b>source instalar.sql</b>
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Connection id:    30
Current database: mysql

Query OK, 1 row affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Connection id:    31
Current database: emaus

Query OK, 0 rows affected, 1 warning (0.04 sec)

Query OK, 0 rows affected, 1 warning (0.02 sec)

Query OK, 0 rows affected, 1 warning (0.01 sec)

Query OK, 0 rows affected, 1 warning (0.03 sec)

Query OK, 0 rows affected, 1 warning (0.02 sec)

Query OK, 0 rows affected, 1 warning (0.04 sec)

Query OK, 4 rows affected (0.00 sec)
Records: 4  Duplicates: 0  Warnings: 0

Query OK, 5 rows affected (0.02 sec)
Records: 5  Duplicates: 0  Warnings: 0

Query OK, 52 rows affected (0.04 sec)
Records: 52  Duplicates: 0  Warnings: 0

Query OK, 5 rows affected (0.00 sec)
Records: 5  Duplicates: 0  Warnings: 0

Query OK, 4 rows affected (0.00 sec)
Records: 4  Duplicates: 0  Warnings: 0

mysql&gt; <b>exit;</b></pre>
      </li>

      <li>Usando o <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>
      ou o Subversion (linha de comando), obtenha uma c�pia do projeto em uma
      pasta gerenciada pelo Apache (<i>%userprofile%\Minhas Webs</i>, em
      ambiente Windows ou <i>~/public_html/</i> em ambiente UNIX, a partir
      do endere�o <i><a href="https://emaus.svn.sourceforge.net/svnroot/emaus">https://emaus.svn.sourceforge.net/svnroot/emaus</a></i>.</li>

      <li>Copie o arquivo <i>comum-dist.php</i> para <i>comum.php</i>. Edite
      o arquivo <i>comum.php</i>, ajustando os valores para os coerentes com
      os indicados nos coment�rios (use a mesma senha inforada no arquivo
      <code>sql/instalar.sql</code>).</li>

      <li>Abra o navegador para o endere�o gerenciado pelo Apache, ex:
      <a href="http://localhost/~cromel/emaus/">http://localhost/~cromel/emaus/</a>.</li>
    </ol>
  </body>
</html>
